package com.yuzhi.master.sewage.rmstSz.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yuzhi.common.core.domain.BaseEntity;
import com.yuzhi.master.sewage.rmstSz.entity.request.LocalDateTimeSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 站点水质因子实时数据表
 */
@Data
@TableName("drain_rmst_sz")
public class DrainRmstSz extends BaseEntity {

    private String id;

    /**
     * 站点编码(关联drain_r_rmst表)
     */
    @Schema(description = "关联drain_r_rmst表")
    private String irrdRRmstCode;

    /**
     * 总磷进水值
     */
    @Schema(description = "总磷进水值")
    private BigDecimal zlJs;

    /**
     * 氨氮进水值
     */
    @Schema(description = "氨氮进水值")
    private BigDecimal adJs;

    /**
     * 溶解氧
     */
    @Schema(description = "溶解氧")
    private BigDecimal rjy;

    /**
     * ph值
     */
    @Schema(description = "ph值")
    private BigDecimal ph;

    /**
     * 实时采集时间
     */
    @Schema(description = "实时采集时间")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime cjTime;

    /**
     * 系统时间
     */
    @Schema(description = "系统时间")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime xtTime;

    /**
     * cod进水值
     */
    @Schema(description = "cod进水值")
    private BigDecimal codJs;

    /**
     * 泵站ID
     */
    @Schema(description = "泵站ID")
    private String bzId;

    @TableField(exist = false) // 表示不是数据库字段
    private String bzName;

    /**
     * 污水厂代码（关联drain_sewage_treatment表）
     */
    @Schema(description = "关联drain_sewage_treatment表")
    private String factId;

    /**
     * cod出水值
     */
    @Schema(description = "cod出水值")
    private BigDecimal codCs;

    /**
     * bod出水值
     */
    @Schema(description = "bod出水值")
    private BigDecimal bodCs;

    /**
     * bod进水值
     */
    @Schema(description = "bod进水值")
    private BigDecimal bodJs;

    /**
     * 氨氮出水值
     */
    @Schema(description = "氨氮出水值")
    private BigDecimal adCs;

    /**
     * 总磷出水值
     */
    @Schema(description = "总磷出水值")
    private BigDecimal zlCs;

    private BigDecimal jsLg;
    private BigDecimal csLg;
    private String jsShsLs;
    private String csSsLs;
    private String qcYw;
    private String hcYw;
    private Integer factType;
    private BigDecimal jsSw;
    private BigDecimal jsZd;
    private BigDecimal csZd;
    private BigDecimal jsSs;
    private BigDecimal csSs;
    private String flowInJs;
    private String flowInCs;


    /**
     * 出水PH值
     */
    private BigDecimal phCs;

    /**
     * 充满度
     */
    private BigDecimal fullLevel;

    /**
     * 液位值
     */
    private BigDecimal LiquidLevel;

    /**
     * 是否达标
     */
    private String isMeet;

    /**
     * 超标描述
     */
    private String overStandard;

    /**
     * 电量
     */
    private BigDecimal batPow;

    private Boolean alert;


}
